//
//  T4ViewController.h
//  EarthIOS
//
//  Created by Xiaohui Chen on 13-7-25.
//  Copyright (c) 2013年 Team4.us. All rights reserved.
//

#import <UIKit/UIKit.h>

@class T4Bundle;

typedef enum {
    T4ControllerAppendModePush = 0,
    T4ControllerAppendModeAdd,
    T4ControllerAppendModePresent,
    T4ControllerAppendModeNewNav,
} T4PushControllerMode;

@interface BaseViewController : UIViewController<UITextFieldDelegate>

@property (nonatomic, strong) T4Bundle *bundle;
@property (nonatomic) T4PushControllerMode mode;

- (id)initWithBundle:(T4Bundle *)bundle;

- (void)back;
//将当前页面的上一个页面从Stack中移除
- (void)popLastPage;
//将当前页面的上几个页面从Stack中移除
- (void)popSeveralPage:(NSUInteger)count;

- (UIViewController *)showWithClassName:(NSString *)className;

- (UIViewController *)showWithClassName:(NSString *)className
                                 bundle:(T4Bundle *)bundle;

- (UIViewController *)showWithClassName:(NSString *)className
                                   mode:(T4PushControllerMode)mode
                                 bundle:(T4Bundle *)bundle;

@end
